import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element'
import './styles/index.scss'
import './styles/element-variables.scss'
import * as filters from './filters'
import service from './utils/request'
import echarts from 'echarts'
import './directive/drag'
Vue.prototype.$echarts = echarts
Vue.prototype.$service = service
Object.keys(filters).forEach(item=>{
  Vue.filter(item, filters[item]);
})
// import './icons/svg/user.svg'
import './icons' // icon
// import "@/icons/svg/user.svg";

if (process.env.NODE_ENV === "development") {
  require("./mock") //开发模式下使用mock
}
// console.log(process.env);
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')